package com.niiwoo.civet.mobile.vo.response.invest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Data
@ApiModel("推荐标的信息")
public class RecommendProjectInfoResponseVO {
    @ApiModelProperty("展示类型：1图片，2推荐标的信息")
    private Byte type;

    @ApiModelProperty("图片url")
    private String url;

    @ApiModelProperty("展示推荐标的信息")
    private ProjectInfo projectInfo;
    @ApiModelProperty("活动信息")
    private ActivityInfoVo activityInfoVo;
    @ApiModelProperty("标签信息( 新手专享标(新手智能投和新手散标)、智能投、热门推荐(散标))")
    private String labelInformation;
    @ApiModelProperty("1.散标 2.智能投")
    private Integer projectAttribute;
    @ApiModelProperty("1.新手推荐 2.热门推荐")
    private Integer isNovice;

    @Data
    @ApiModel("展示推荐标的信息")
    public static class ProjectInfo{
        @ApiModelProperty("标的id/包id")
        private Long projectId;

        @ApiModelProperty("借款用户id")
        private String borrowUserId;

        @ApiModelProperty("是否已抢光：0否，1是")
        private Byte isSoldOut;

        @ApiModelProperty("年化利率")
        private BigDecimal borrowRate;

        
        @ApiModelProperty("期数")
        private Integer deadline;

        @ApiModelProperty("期数单位1:月，2:天")
        private Byte deadlineUnit;

        @ApiModelProperty("可投金额")
        private BigDecimal investingAmount;

        @ApiModelProperty("总金额")
        private BigDecimal contractAmount;

        @ApiModelProperty("还款方式")
        private String repaymentTypeDesc;
    }
    @ApiModel("活动信息")
    @Getter
    @Setter
    public static class ActivityInfoVo{
    	@ApiModelProperty("活动加息，10%返回0.1")
    	private BigDecimal addInerest;
    	@ApiModelProperty("活动标题")
    	private String activityTitle;
    }
    
}
